<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
{{ a }}
<form action="" method="post">
    {% csrf_token %}
    账户 <input type="text" name="uname">
    <br>
    密码 <input type="password" name="upwd">
    <br>
    确认密码 <input type="password" name="upwd">
    <br>
    角色
    <select name="role" id="">
        <option value="1">学生</option>
        <option value="2">老师</option>
    </select>
    <input type="submit" value="注册">

</form>
</body>
</html>